import request from "@/utils/request"; // 查询公告列表

export function getProjectList(data) {
  return request({
    url: "/item/list",
    method: "post",
    data: data,
  });
}
// 详情
export function ProjectInfo(data) {
  return request({
    url: "/item/info",
    method: "post",
    data: data,
  });
}
// 修改参数配置
export function updateProject(data) {
  return request({
    url: "/item/edit",
    method: "post",
    data: data,
  });
}
// 添加
export function addProject(data) {
  return request({
    url: "/item/add",
    method: "post",
    data: data,
  });
}
// 地区下拉
export function getAreas(data) {
  return request({
    url: "/areas/search",
    method: "post",
    data: data,
  });
}
//单位下拉
export function getWork(data) {
  return request({
    url: "/work/unit/search",
    method: "post",
    data: data,
  });
}
export function getUserId(query) {
  return request({
    url: "/system/user/list/role",
    method: "get",
    params: query,
  });
}
//副审核
export function setAudit(data) {
  return request({
    url: "/item/audit/item/1",
    method: "post",
    data: data,
  });
}
//总审核
export function setAudit1(data) {
  return request({
    url: "/item/audit/item/2",
    method: "post",
    data: data,
  });
}
//修改金额
export function setPrice(data) {
  return request({
    url: "/item/update/amount",
    method: "post",
    data: data,
  });
}

//副审核
export function setAuditPrice(data) {
  return request({
    url: "/item/audit/amount/1",
    method: "post",
    data: data,
  });
}
//总审核
export function setAuditPrice1(data) {
  return request({
    url: "/item/audit/amount/2",
    method: "post",
    data: data,
  });
}
//报销列表
export function getReimburseList(data) {
  return request({
    url: '/reimburse/list',
    method: 'post',
    data: data
  })
}
  // 添加
  export function addReimburse(data) {
    return request({
      url: '/reimburse/add',
      method: 'post',
      data: data
    })
  }
    // 修改
export function updateReimburse(data) {
  return request({
    url: '/reimburse/edit',
    method: 'post',
    data: data
  })
}
// 详情
export function ReimburseInfo(data) {
  return request({
    url: '/reimburse/info',
    method: 'post',
    data: data
  })
}

// 删除
export function delReimburse(data) {
  return request({
    url: '/reimburse/remove',
    method: 'post',
    data: data
  })
}



//外包

export function getOutList(data) {
  return request({
    url: '/item/out/list',
    method: 'post',
    data: data
  })
}
  // 添加
  export function addOut(data) {
    return request({
      url: '/item/out/add',
      method: 'post',
      data: data
    })
  }
  // 修改
export function updateOut(data) {
    return request({
      url: '/item/out/edit',
      method: 'post',
      data: data
    })
  }
// 详情
export function OutInfo(data) {
    return request({
      url: '/item/out/info',
      method: 'post',
      data: data
    })
}

  // 删除
export function delOut(data) {
    return request({
      url: '/item/out/remove',
      method: 'post',
      data: data
    })
  }

  export function getcompanyList(data) {
    return request({
      url: '/company/out/search',
      method: 'post',
      data: data
    })
  }
 //项目完成按钮
  export function allsumber(data) {
    return request({
      url: '/item/finish',
      method: 'post',
      data: data
    })
  }

 //员工列表
 export function uulist(data) {
  return request({
    url: '/staff/search',
    method: 'post',
    data: data
  })
}


 //提成添加
 export function addtc(data) {
  return request({
    url: '/item/set/commission',
    method: 'post',
    data: data
  })
}
 //提成修改
 export function settc(data) {
  return request({
    url: '/item/get/commission',
    method: 'post',
    data: data
  })
}

 //提成修改
 export function getprice(data) {
  return request({
    url: '/item/cooperate/info',
    method: 'post',
    data: data
  })
}


  
